<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" ></meta>
    <title>用户授权</title>
</head>

<body>
<h2></h2>

<form name="f" th:action="@{/oauth/authorize}" method="post">
    <fieldset>
        <legend>请选择资源 ：</legend>
        <tr th:each="scope : ${scopes}">
            <input type="checkbox" th:name="${scope.key.code}" th:checked="true" />
            <td th:text="${scope.key.name}"></td>
            <br/>
        </tr>
       	<input name="user_oauth_approval" value="true" type="hidden" />
        <button class="btn btn-primary" type="submit">确认授权</button>
    </fieldset>
</form>
</body>
</html>
